package demo1.director;

import demo1.builder.BikeBuilder;
import lombok.AllArgsConstructor;
import lombok.Data;
import demo1.model.Bike;


@Data
@AllArgsConstructor
public class BikeDirector {

    private BikeBuilder builder;

    public Bike construct(){
        builder.buildFrame();
        builder.buildSeat();
        return builder.createBike();
    }
}
